package com.liyiruo.tx.service.main1;

import com.liyiruo.tx.mapper.TableAMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 都不加事务 a表里添加成功1条 b表里添加成功1条
 * @author liyiruo
 * @Description
 * @Date 2022/2/18 下午5:11
 */
@Service
public class TestMain1 {

    @Autowired
    private TableAMapper tableAMapper;
    @Autowired
    private TestBe testBe1;

    public void testMain() {
        tableAMapper.addTableA();  //调用A入参a1
        int i=1/0;
        testBe1.testB();    //调用testB
    }
}
